/*************************************************************************
Item class

This class extends the abstract class KeyedItem.  It provides an Integer
based extension of KeyedItem.
*************************************************************************/

import java.lang.*;

public class Item extends KeyedItem<Integer> implements Comparable<Integer>
{
	public Item(Integer searchKey)
	{
		super(searchKey);
	}

	public int compareTo(Integer other)
	{
		if (this.getKey() == other)
			return 0;
		else if (this.getKey() > other)
			return 1;
		else
			return -1;
	}

	public String toString()
	{
		Integer temp = this.getKey();
		return temp.toString();
	}
        
        public int toInt()
        {
            return (int)this.getKey();
        }
}